<div class="loginlayer tm10 cl">
    <div class="leftlayer z zhbform">
        <?php
        $this->pageTitle = '注册';
        $form = $this->beginWidget('CActiveForm', array(
            'id' => 'reg-form',
            'enableClientValidation' => true,
            'clientOptions' => array(
                'validateOnSubmit' => true,
            ),
            'focus'=>array($model,'username'),
        ));
        ?>
        <?php echo $form->hiddenField($model, 'pid', array('value' => !trim($_GET['pid']) ? '0' : trim($_GET['pid']))); ?>
        <div class="infolist cols1 cl">
            <div class="col cl">
                <div class="tit"><?php echo $form->labelEx($model, 'username'); ?></div>
                <div class="inp cl"><div class="text"><?php echo $form->textField($model, 'username', array('style' => 'width:257px')); ?><span></span></div></div>
            </div>
        </div>
        <div class="infolist cols1 cl clpd_all">
            <div class="col cl">
                <div class="tit"></div>
                <div class="inp cl"><?php echo $form->error($model, 'username'); ?></div>
            </div>
        </div>
        <div class="infolist cols1 cl">
            <div class="col cl">
                <div class="tit"><?php echo $form->labelEx($model, 'password'); ?></div>
                <div class="inp cl"><div class="text"><?php echo $form->passwordField($model, 'password', array('style' => 'width:257px')); ?><span></span></div></div>
            </div>
        </div>
        <div class="infolist cols1 cl clpd_all">
            <div class="col cl">
                <div class="tit"></div>
                <div class="inp cl"><?php echo $form->error($model, 'password'); ?></div>
            </div>
        </div>
        <div class="infolist cols1 cl">
            <div class="col cl">
                <div class="tit"><?php echo $form->labelEx($model, 'password_repeat'); ?></div>
                <div class="inp cl"><div class="text"><?php echo $form->passwordField($model, 'password_repeat', array('style' => 'width:257px')); ?><span></span></div></div>
            </div>
        </div>
        <div class="infolist cols1 cl clpd_all">
            <div class="col cl">
                <div class="tit"></div>
                <div class="inp cl"><?php echo $form->error($model, 'password_repeat'); ?></div>
            </div>
        </div>
        <div class="infolist cols1 cl">
            <div class="col cl">
                <div class="tit"><?php echo $form->labelEx($model, 'email'); ?></div>
                <div class="inp cl"><div class="text"><?php echo $form->textField($model, 'email', array('style' => 'width:257px')); ?><span></span></div></div>
            </div>
        </div>
        <div class="infolist cols1 cl clpd_all">
            <div class="col cl">
                <div class="tit"></div>
                <div class="inp cl"><?php echo $form->error($model, 'email'); ?></div>
            </div>
        </div>
        <div class="infolist cols1 cl">
            <div class="col cl">
                <div class="tit"><?php echo $form->labelEx($model, 'mobile'); ?></div>
                <div class="inp cl"><div class="text"><?php echo $form->textField($model, 'mobile', array('style' => 'width:257px', 'maxlength' => '11')); ?><span></span></div></div>
            </div>
        </div>
        <div class="infolist cols1 cl clpd_all">
            <div class="col cl">
                <div class="tit"></div>
                <div class="inp cl"><?php echo $form->error($model, 'mobile'); ?></div>
            </div>
        </div>
        <div class="infolist cols1 cl">
            <div class="col cl">
                <div class="tit"></div>
                <div class="inp cl" style="width:275px;">
                    <div class="z">
                        <?php echo CHtml::link('已有账号？现在登录', array('/login'), array('class' => 'z c_b')); ?>
                    </div>
                    <?php echo CHtml::submitButton('注册', array('class' => 'submit submit_blue y')); ?>
                </div>
            </div>
        </div>
        <?php $this->endWidget(); ?>
    </div>
    <div class="rightlayer z">
        <p>合作网站账号登录</p>
        <ul class="apilogin cl">
            <li class="xwb"><a href="#"><span class="cmicons"></span>新浪微博</a></li>
            <li class="twb"><a href="#"><span class="cmicons"></span>腾讯微博</a></li>
            <li class="twx"><a href="#"><span class="cmicons"></span>微信</a></li>
            <li class="rr"><a href="#"><span class="cmicons"></span>人人网</a></li>
        </ul>
        <div class="tm20">
            <p>关注微信公众账号</p>
            <div class="cl">
                <div class="z"><img width="90" height="90" src="<?php echo Yii::app()->request->baseUrl; ?>/images/qr.jpg"/></div>
                <div class="ourhope">我们会在每个环节做到为您所需，为您提供最高品质、配送上门体验</div>
            </div>
        </div>
    </div>
</div>